package com.icloud.common.constant;

/**
 * 调用状态
 */
public enum InvokeStatus {

    OK(200, "OK"),

    USER_INVALID_ERROR(40101,"user token invalid error"),
    CLIENT_INVALID_ERROR(40102,"user token invalid error"),

    PARAMETER_ANALYSIS_ERROR(40103,"parameter analysis error"),

    CLIENT_INPUT_ERROR(40103,"client input error"),

    CLIENT_FORBIDDEN(40301,"client forbidden"),

    SERVER_ERORE(50101,"servier error");


    private  int value;
    private  String reasonPhrase;

    private InvokeStatus(int value, String reasonPhrase ){
        this.value = value;
        this.reasonPhrase = reasonPhrase;
    }


    public String toString() {
        return Integer.toString(this.value);
    }

    public int getValue() {
        return value;
    }

    public String getReasonPhrase() {
        return reasonPhrase;
    }
}
